package com.xiaoxu.intranetweb.mybatisplusSzappdb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoxu
 * @since 2024-04-26
 */
@TableName("t_special_price")
@ApiModel(value = "TSpecialPrice对象", description = "")
@Data
public class TSpecialPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    private BigDecimal price;

    @ApiModelProperty("绑定的价格类型")
    private String priceTypeId;

    @ApiModelProperty("价格类型、如竞价、石膏竞价、区间优惠价。。。")
    private String priceType;

    @ApiModelProperty("0只按照时间区间执行，1按照num以车数执行，2按照num以数量执行")
    private Integer executeType;

    @ApiModelProperty("根据EXECUTE_TYPE执行")
    private BigDecimal num;
//RESIDUE_NUM
    @ApiModelProperty("剩余数量")
    private BigDecimal residueNum;
    @ApiModelProperty("品种id")
    private String pdtId;

    @ApiModelProperty("单位id")
    private String coId;

    @ApiModelProperty("执行开始")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime startTime;

    @ApiModelProperty("执行结束")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime endTime;

    @ApiModelProperty("是否删除，0正常，1删除")
    private Integer delFlag;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
    @ApiModelProperty("创建人")
    private String createrId;
    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime updateTime;

    @ApiModelProperty("修改人")
    private String updatorId;

    @ApiModelProperty("备注")
    private String priceDesc;
    private String connId;
    @ApiModelProperty("属于厂")
    private String dataFrom;

}
